package net.lzzy.practices.web;

import net.lzzy.practices.web.handler.BusinessException;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.servlet.config.annotation.EnableWebMvc;
import springfox.documentation.annotations.ApiIgnore;

/**
 * @author liaodcc.
 */

@ApiIgnore
@Controller
public class IndexController {
    @GetMapping ("/")
    public String index(){
//        if (true){
//            throw new BusinessException("测试业务异常");
//        }
        return "index";
    }
}
